package fitness

import (
	"fitness/internal/dao/fitness"
	"go.uber.org/zap"
)

type ServiceContainer struct {
	DetailService *DetailService
	UserService   *UserService
}

// CreateFitnessServiceInstance 创建单例
func CreateFitnessServiceInstance(daoContainer *fitness.DaoContainer, logger *zap.Logger) *ServiceContainer {
	detailService := NewDetailService(daoContainer.DetailDao, logger)
	userService := NewUserService(daoContainer.UserDao, logger)
	return &ServiceContainer{
		DetailService: detailService,
		UserService:   userService,
	}
}
